package com.ltu.mapper.customize;

import com.ltu.domain.mp_entity.OrderEntity;
import com.ltu.domain.mp_entity.customize.ServiceOrderEntity;
import com.ltu.model.response.order.OrderVO;
import com.ltu.vo.XcxUserOrderCountVO;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * <p>
 * 服务订单 Mapper 接口
 * </p>
 *
 * @author 若尘
 * @since 2024-09-26
 */
public interface ServiceOrderMapper extends BaseMapper<ServiceOrderEntity> {
	@Select(value = " select o.* ,s.user_phone as solicitorPhone from t_service_order o  LEFT JOIN  t_solicitors  s on s.id = o.solicitor_id  ${ew.customSqlSegment}")
	Page<ServiceOrderEntity>   customisePage(Page<ServiceOrderEntity> page,@Param(Constants.WRAPPER) Wrapper<ServiceOrderEntity>  wrapper);
}
